package com.nuoniu.sibanyun.mapper.production;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuoniu.sibanyun.entity.production.ErpStation;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 工位 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-03-06
 */
public interface ErpStationMapper extends BaseMapper<ErpStation> {

    @Select("select * from mab_station where company_id=#{companyId} and code=#{code}")
    ErpStation getByCode(Integer companyId, String code);

    @Select("select * from mab_station where company_id=#{companyId} and name=#{name}")
    ErpStation getByName(Integer companyId, String name);
}
